package cn.com.fone.modules.api.common.split.annotation;


import cn.com.fone.modules.api.common.split.enums.SplitTableEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface SplitTable {
    //是否分表
    public boolean split() default true;

    public String value() default "";

    public String field() default "";

    // 获取分表策略
    public SplitTableEnum strategy() default SplitTableEnum.YYYY;

}
